class Father():
    def __init__(self):
        self.name = "老王"
        self.__money = 1000  # 私有属性,不能被继承

    def eat(self):
        print("吃")

    def __play(self):  # 私有方法 不能被继承
        print("玩黑神话")


class Son(Father):
    pass


s = Son()
print(s.name)
# print(s.__money)
s.eat()

print(s.__dir__())
